import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;

class Stu implements Comparable<Stu>{
      private String name;
      private int score;

      public Stu(String name, int score) {
            this.name = name;
            this.score = score;
      }

      public String getName() {
            return name;
      }

      public void setName(String name) {
            this.name = name;
      }

      public int getScore() {
            return score;
      }

      public void setScore(int score) {
            this.score = score;
      }

      @Override
      public String toString() {
            return "Stu{" +
                    "name='" + name + '\'' +
                    ", score=" + score +
                    '}';
      }

      @Override
      public int compareTo(Stu o) {
            return this.score - o.score;
      }
}
public class Test1 {
      public static List<Character> remove(String str1,String str2){
            List<Character> list = new ArrayList<>();
            for (int i = 0; i < str1.length(); i++) {
                  char ch = str1.charAt(i);
                  if( !str2.contains(ch+"")){
                       list.add(ch);
                  }
            }
            return list;
      }
      public static void main(String[] args) {
            List<Character> arrayList = remove("welcome to bit","come");
//            for (Character s:arrayList){
//                  System.out.print(s);
//            }
            for (int i = 0; i < arrayList.size(); i++) {
                  System.out.print(arrayList.get(i));
            }
      }
      public static void main1(String[] args) {
            ArrayList<Stu> arrayList = new ArrayList<>();
            arrayList.add(new Stu("大飞",90));
            arrayList.add(new Stu("白糖",85));
            arrayList.add(new Stu("武松",99));
            for (Stu s:arrayList) {
                  System.out.println(s);
            }
            System.out.println("==========================");
            Collections.sort(arrayList);
            for (Stu s:arrayList) {
                  System.out.println(s);
            }
      }

}
